package lab02.test12;

import lab02.test11.Rectangle;

public class Test12 {
    public static void main(String[] args) {
        Circle a=new  Circle();
        a.radius=4;
        System.out.print("边长为"+a.radius+"的圆面积是：");
        System.out.println(a.getProportion());
        System.out.print("边长为"+a.radius+"的圆周长是：");
        System.out.println(a.getPerimeter());
        System.out.println();


        Rectangular b=new Rectangular();
        b.side1=4;
        b.side2=5;
        System.out.println("长方形：");
        System.out.print("周长是：");
        System.out.println(b.getPerimeter());
        System.out.print("面积是：");
        System.out.println(b.getProportion());
    }
}
